From: Emmanuele Bassi Date: Thu, 4 Nov 2021 13:41:35 +0000 (+0000) Subject: build: Don't use ld when cross-compiling X-Git-Tag: archive/raspbian/4.6.5+ds-1+rpi1~1^2~91^2^2~185^2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=a1861112eea8cbee0d5a3b6d26b34f80b7bf4718;p=gtk4.git build: Don't use ld when cross-compiling We can't guarantee anything on the target toolchain, in that case. --- diff --git a/gtk/meson.build b/gtk/meson.build index e31b9e67ff..57e573a681 100644 --- a/gtk/meson.build +++ b/gtk/meson.build @@ -872,7 +872,7 @@ endif ld = find_program('ld', required : false) -if build_machine.system() == 'linux' and objcopy.found() and objcopy_supports_add_symbol and ld.found() +if not meson.is_cross_build() and build_machine.system() == 'linux' and objcopy.found() and objcopy_supports_add_symbol and ld.found() glib_compile_resources = find_program('glib-compile-resources') # Create the resource blob